package com.yuanfengPlus.basicInfoManage.loginfo.dao;

import com.yuanfengPlus.basicInfoManage.loginfo.model.LogInfo;
import io.lettuce.core.dynamic.annotation.Param;
import lombok.extern.java.Log;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.Date;
import java.util.List;

@Mapper
public interface ILogInfoMapper {
    Integer insert(LogInfo log);


    void updateResult(Long id, String result);


    void updateException(Long id, String exception);


    List<LogInfo> findByTimestampBetween(Date startDate, Date endDate);
    List<LogInfo> selectAll();
}
